package cn.cyl.sys.service.impl;

import cn.cyl.basic.service.impl.BaseServiceImpl;
import cn.cyl.sys.domain.DictionaryType;
import cn.cyl.sys.mapper.DictionaryDetailMapper;
import cn.cyl.sys.service.DictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictionaryTypeServiceImpl extends BaseServiceImpl<DictionaryType> implements DictionaryTypeService {
    @Autowired
    private DictionaryDetailMapper dictionaryDetailMapper;

    @Override
    public void del(Long id) {
        dictionaryDetailMapper.typeDel(id);
        super.del(id);
    }

    @Override
    public void patchDelete(List<Long> ids) {
        dictionaryDetailMapper.typePatchDel(ids);
        super.patchDelete(ids);
    }
}
